package com.hx.vending.dao;

import com.hx.vending.bean.Customer;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/12/18.
 * 客户
 */
@Repository
public interface CustomerMapper {

    int deleteByPrimaryKey(Integer customerId);

    int insertSelective(Customer record);

    Customer selectByPrimaryKeySelective(Customer record);

    List<Customer> selectByExampleSelective(Customer record);

    int updateByPrimaryKeySelective(Customer record);

    int countCustomerKey(Customer record);

    /**
     * 根据订单id查询买家id设备id
     * @param onlineOrderId
     * @return
     */
    Map<String,Object> selectByOrderId(Integer onlineOrderId);

}
